﻿using MimeKit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WomanMotion.WebApi.Infrastructure.Ioc;

namespace WomanMotion.WebApi.Infrastructure.Email
{
    /// <summary>
    /// 邮件发送
    /// </summary>
    public interface ISendMail : ITransientDependency
    {
        /// <summary>
        /// 发送Email
        /// </summary>
        /// <param name="message">消息体</param>
        /// <param name="name">收件人</param>
        /// <param name="addressee">收件地址</param>
        /// <returns></returns>
        Task SendEmailAsync(MimeMessage message, string name, string addressee);
    }
}